// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
wait 3000 

:NONAME_5
Model.Load(#FREEWAY)
038B: load_requested_models 
15@ = 304475 

:NONAME_22
wait 0 
if 
   Model.Available(#FREEWAY)
else_jump @NONAME_5 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @NONAME_22 
wait 100 
0208: 1@ = random_float_in_ranges -90.0 90.0 
0208: 2@ = random_float_in_ranges -90.0 90.0 
04C4: store_coords_to 31@ 32@ 33@ from_actor $PLAYER_ACTOR with_offset 1.0 1.0 0.0 
04C4: store_coords_to 10@ 11@ 12@ from_actor $PLAYER_ACTOR with_offset 1@ 2@ 0.0 
02C1: store_to 20@ 21@ 22@ car_path_coords_closest_to 10@ 11@ 12@ 
if 
056E:   car 3@ defined 
else_jump @NONAME_189 
jump @NONAME_719 

:NONAME_189
if and
   not Actor.Driving($PLAYER_ACTOR)
  &0(15@,1i) == 16711680 
else_jump @NONAME_22 
wait 100 
3@ = Car.Create(#FREEWAY, 20@, 21@, 22@)
Car.SetImmunities(3@, 1, 1, 1, 1, 1)
01EC: make_car 3@ very_heavy 1 
0229: set_car 3@ primary_color_to 0 secondary_color_to 0 
0294: set_car 3@ sprayable 0 
064B: 13@ = create_particle "OVERHEAT_CAR" at 31@ 32@ 33@ type 1 
064B: 14@ = create_particle "OVERHEAT_CAR" at 31@ 32@ 33@ type 1 
064B: 7@ = create_particle "FIRE" at 20@ 21@ 22@ type 1 
064B: 8@ = create_particle "FIRE" at 20@ 21@ 22@ type 1 
066C: 7@ = attach_particle "FIRE" to_car 3@ with_offset 0.0 -1.0 0.0 rotation 0.0 -1.0 0.0 flag 1 
066C: 13@ = attach_particle "OVERHEAT_CAR" to_car 3@ with_offset 0.0 -1.0 0.0 rotation 0.0 -1.0 0.0 flag 1 
066C: 8@ = attach_particle "FIRE" to_car 3@ with_offset 0.0 1.0 0.0 rotation 0.0 -1.0 0.0 flag 1 
066C: 14@ = attach_particle "OVERHEAT_CAR" to_car 3@ with_offset 0.0 1.0 0.0 rotation 0.0 -1.0 0.0 flag 1 
064C: make_particle 7@ visible 
064C: make_particle 13@ visible 
064C: make_particle 14@ visible 
064C: make_particle 8@ visible 
wait 100 
02C2: car 3@ drive_to 31@ 32@ 33@ 
Car.SetDriverBehaviour(3@, 5)
Car.SetMaxSpeed(3@, 30.0)
00AE: set_car 3@ traffic_behaviour_to 2 
wait 100 
5@ = Marker.CreateAboveCar(3@)
07E0: set_marker 5@ type_to 1 

:NONAME_663
wait 100 
if 
0206:   actor $PLAYER_ACTOR near_car 3@ radius 10.0 10.0 10.0 flag 0 on_foot 
else_jump @NONAME_663 
Marker.Disable(5@)
Car.SetDriverBehaviour(3@, Nowhere)
wait 100 

:NONAME_719
if 
   Actor.InCar($PLAYER_ACTOR, 3@)
else_jump @NONAME_752 
08C6: set_actor $PLAYER_ACTOR stay_on_bike 1 
jump @NONAME_759 

:NONAME_752
08C6: set_actor $PLAYER_ACTOR stay_on_bike 0 

:NONAME_759
if 
82BF:   not car 3@ sunk 
else_jump @NONAME_1102 
wait 100 
if 
   not Actor.Driving($PLAYER_ACTOR)
   not Actor.InCar($PLAYER_ACTOR, 3@)
  &0(15@,1i) == 255 
else_jump @NONAME_922 
02C2: car 3@ drive_to 20@ 21@ 22@ 
Car.SetDriverBehaviour(3@, FollowRoad)
Car.SetMaxSpeed(3@, 30.0)
00AE: set_car 3@ traffic_behaviour_to 2 
wait 30000 
Car.SetImmunities(3@, 0, 0, 0, 0, 0)
Car.SetDriverBehaviour(3@, Nowhere)
0650: destroy_particle 7@ 
0650: destroy_particle 8@ 
0650: destroy_particle 13@ 
0650: destroy_particle 14@ 
Car.RemoveReferences(3@)
Car.Destroy(3@)
Model.Destroy(#FREEWAY)
jump @NONAME_22 

:NONAME_922
wait 100 
if and
   not Car.Wrecked(3@)
8206:   not actor $PLAYER_ACTOR near_car 3@ radius 20.0 20.0 20.0 flag 0 on_foot 
   not Actor.InCar($PLAYER_ACTOR, 3@)
else_jump @NONAME_22 
Car.SetImmunities(3@, 1, 1, 1, 1, 1)
02C2: car 3@ drive_to 31@ 32@ 33@ 
Car.SetDriverBehaviour(3@, 5)
00AE: set_car 3@ traffic_behaviour_to 2 
Car.SetMaxSpeed(3@, 10.0)
5@ = Marker.CreateAboveCar(3@)
07E0: set_marker 5@ type_to 1 

:NONAME_1043
wait 100 
if 
0206:   actor $PLAYER_ACTOR near_car 3@ radius 10.0 10.0 10.0 flag 0 on_foot 
else_jump @NONAME_1043 
Marker.Disable(5@)
Car.SetDriverBehaviour(3@, Nowhere)
jump @NONAME_22 

:NONAME_1102
wait 100 
Marker.Disable(5@)
Car.SetImmunities(3@, 0, 0, 0, 0, 0)
Car.SetDriverBehaviour(3@, Nowhere)
0650: destroy_particle 7@ 
0650: destroy_particle 8@ 
0650: destroy_particle 13@ 
0650: destroy_particle 14@ 
Car.RemoveReferences(3@)
Car.Destroy(3@)
Model.Destroy(#FREEWAY)
jump @NONAME_22 
